// sidebar
$menuBackgroundColor: #304156;
$menuActiveTextColor: #409EFF;
$menuTextColor: #bfcbd9;
$subMenuActiveText: #409EFF;
$speed: 0.1s;
$menu-bg-color: $menuBackgroundColor;

:export {
  menuBackgroundColor: $menuBackgroundColor;
  menuActiveTextColor: $menuActiveTextColor;
  menuTextColor: $menuTextColor;
  subMenuActiveText: $subMenuActiveText;
}

.el-menu {
  background-color:$menuBackgroundColor !important;

   *{
    color: $menuTextColor !important;
  }

  .el-menu-item {
    &.is-active {
      color:white !important;
      background-color: #08182c !important;
    }
  }


    .el-menu-item{
      line-height: 40px;
      height: 40px;
      border-radius: 8px;
      min-width:120px;
      margin: 3px 10px;

      &:hover{
        background-color: rgb(38, 52, 69) !important;
      }
    }


  .el-sub-menu{
    &.is-opened{
      .el-sub-menu__title {
        background-color: rgb(38, 52, 69) !important;
      }
    }

    &.is-active{
      .el-sub-menu__title {
        background-color: unset !important;
      }
    }

    .el-sub-menu__title:hover{
       background-color: rgb(38, 52, 69) !important;
     }
  }


}

.container-slider {
  display: flex;
  position: relative;
  width: 180px;
  flex-direction: column;
  overflow: auto;

  .slider-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 52px;

    .logo {
      height: 52px;
      width: 100%;
    }
  }

  .logo-open {
    width: 180px;
  }

  .logo-close {
    width: 64px;
    overflow: hidden;
  }

  .slider-btn {
    position: absolute;
    bottom: 0;
    z-index: 9999;
    padding: 10px 0;
    cursor: pointer;
    right: 0;
    background-color: $menuBackgroundColor;
    color: wheat;
    width: 16px;
    text-align: center;
    border-radius: 0 8px 8px 0;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }


  .slider-body {
    flex: 1;
    z-index: 999;
    user-select: none;
    overflow-x: auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 0 12px 0 grey;
    margin-bottom: 4px;

    .slider {
      flex: 1;
      border-right: 0;

      .el-submenu__title{
        overflow: hidden;
      }

      .font-bga {
        height: 20px;
        width: 20px;
        background: #5095e5;
        padding: 10px;
        line-height: 20px;
        margin: 8px -10px;
        border-radius: 50%;
        text-align: center;
        color: #fff !important;
      }
    }
  }
}

.el-menu--popup-right-start{
  margin-left:1px;
}



